import lyRequest from '../index.js'

// 提交答题
export const reqSubmitQuestion = (data) => {
	return lyRequest.post({
		url: '/baseQuestion/submitQuestion',
		data,
		isShowMessage: true
	})
}

// 获取题目反馈类型接口
export const getFeedbackTypeList = () => {
	return lyRequest.get({
		url: '/baseQuestion/getFeedbackTypeList'
	})
}

// 提交题目反馈
export const reqSubmitFeedback = (data) => {
	return lyRequest.post({
		url: '/baseQuestion/submitFeedback',
		data,
		isShowMessage: true
	})
}

// 收藏与取消收藏
export const reqQuestionCollect = (data) => {
	return lyRequest.post({
		url: '/baseQuestion/questionCollect',
		data,
		isShowMessage: true
	})
}